//package com.guang.springbootrequestversion.config;
//
//import com.guang.springbootrequestversion.interceptor.OneHandlerInterceptor;
//import com.guang.springbootrequestversion.interceptor.ThreeHandlerInterceptor;
//import com.guang.springbootrequestversion.interceptor.TwoHandlerInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//
///**
// * @author liguang
// * @date 2022/5/13 11:24
// */
//// 如果想要自定义springmvc，那么只需要在容器中添加一个WebMvcConfigurer类型的组件
//@Configuration(proxyBeanMethods = false)
//public class CustomWebMVCConfig implements WebMvcConfigurer {
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new OneHandlerInterceptor()).addPathPatterns("/self/**").excludePathPatterns("/api/**").order(5);
//        registry.addInterceptor(new TwoHandlerInterceptor()).addPathPatterns("/self/**").excludePathPatterns("/api/**").order(4);
//        registry.addInterceptor(new ThreeHandlerInterceptor()).addPathPatterns("/self/**").excludePathPatterns("/api/**").order(3);
//    }
//}
